inspector: increase type by right amount
authorBenjamin Otte <otte@redhat.com>
Mon, 13 Oct 2014 04:09:35 +0000 (06:09 +0200)
committerBenjamin Otte <otte@redhat.com>
Tue, 14 Oct 2014 12:03:05 +0000 (14:03 +0200)
It's a shift, so we better shift it!

gtk/inspector/statistics.c

index 1950301a35235a5dc1b74bcab621072051fd277e..f41567b07566ac51cbcf868e384a8f1df1edfe14 100644 (file)
@@ -103,7 +103,7 @@ update_type_counts (GtkInspectorStatistics *sl)
   GType type;
   gpointer class;
 
-  for (type = G_TYPE_INTERFACE; type <= G_TYPE_FUNDAMENTAL_MAX; type += G_TYPE_FUNDAMENTAL_SHIFT)
+  for (type = G_TYPE_INTERFACE; type <= G_TYPE_FUNDAMENTAL_MAX; type += (1 << G_TYPE_FUNDAMENTAL_SHIFT))
     {
       class = g_type_class_peek (type);
       if (class == NULL)